package com.ks.xcamera.responseBean;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;

public class UserResponse implements Serializable {

    @JSONField(name = "userinfo")
    private UserinfoDTO userinfo;

    public UserinfoDTO getUserinfo() {
        return userinfo;
    }

    public void setUserinfo(UserinfoDTO userinfo) {
        this.userinfo = userinfo;
    }

    public static class UserinfoDTO {
        @JSONField(name = "id")
        private Integer id;
        @JSONField(name = "username")
        private String username;
        @JSONField(name = "nickname")
        private String nickname;
        @JSONField(name = "mobile")
        private String mobile;
        @JSONField(name = "avatar")
        private String avatar;
        @JSONField(name = "score")
        private Integer score;
        @JSONField(name = "token")
        private String token;
        @JSONField(name = "user_id")
        private Integer userId;
        @JSONField(name = "createtime")
        private Integer createtime;
        @JSONField(name = "expiretime")
        private Integer expiretime;
        @JSONField(name = "expires_in")
        private Integer expiresIn;

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getAvatar() {
            return avatar;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }

        public Integer getScore() {
            return score;
        }

        public void setScore(Integer score) {
            this.score = score;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public Integer getUserId() {
            return userId;
        }

        public void setUserId(Integer userId) {
            this.userId = userId;
        }

        public Integer getCreatetime() {
            return createtime;
        }

        public void setCreatetime(Integer createtime) {
            this.createtime = createtime;
        }

        public Integer getExpiretime() {
            return expiretime;
        }

        public void setExpiretime(Integer expiretime) {
            this.expiretime = expiretime;
        }

        public Integer getExpiresIn() {
            return expiresIn;
        }

        public void setExpiresIn(Integer expiresIn) {
            this.expiresIn = expiresIn;
        }

        @Override
        public String toString() {
            return "UserinfoDTO{" +
                    "id=" + id +
                    ", username='" + username + '\'' +
                    ", nickname='" + nickname + '\'' +
                    ", mobile='" + mobile + '\'' +
                    ", avatar='" + avatar + '\'' +
                    ", score=" + score +
                    ", token='" + token + '\'' +
                    ", userId=" + userId +
                    ", createtime=" + createtime +
                    ", expiretime=" + expiretime +
                    ", expiresIn=" + expiresIn +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "UserResponse{" +
                "userinfo=" + userinfo +
                '}';
    }
}
